package comCS275.note_share;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class AccountCreationPage extends Activity implements OnClickListener{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_account_creation_page);
		Button btnLogin = (Button)this.findViewById(R.id.button1_create);
		btnLogin.setOnClickListener(this);
	}

	public void onClick(View v){
		// Get account info
		EditText nameID = (EditText) findViewById(R.id.enter_name);
		EditText emailID = (EditText) findViewById(R.id.enter_email);
		EditText bdayID = (EditText) findViewById(R.id.enter_bday);
		EditText userid = (EditText) findViewById(R.id.input_name);
		EditText password = (EditText) findViewById(R.id.enter_password);
		EditText password2 = (EditText) findViewById(R.id.reenter_password);
		
		// Set info to strings
		String name =  nameID.getText().toString();
		String email = emailID.getText().toString();
		String bday = bdayID.getText().toString();
		String usr =  userid.getText().toString();
		String pass = password.getText().toString();
		String pass2 = password2.getText().toString();
		Intent i = new Intent(AccountCreationPage.this, MenuPage.class);
		startActivity(i);
	}
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.account_creation_page, menu);
		return true;
	}

}

